/*
 * ************************************************************************
 *
 *  Copyright © 2018 KYE Company
 *  跨越速运集团有限公司版权所有
 *
 *  PROPRIETARY RIGHTS of KYE Company are involved in the
 *  subject matter of this material. All manufacturing, reproduction, use,
 *  and sales rights pertaining to this subject matter are governed by the
 *  license agreement. The recipient of this software implicitly accepts
 *  the terms of the license.
 *  本软件文档资料是跨越速运集团有限公司的资产，任何人士阅读和
 *  使用本资料必须获得相应的书面授权，承担保密责任和接受相应的法律约束。
 *
 * ************************************************************************
 */

package com.kyexpress.common.hrinterview.api.service;

import com.kyexpress.common.hrinterview.api.bo.StatisticsBo;
import com.kyexpress.common.hrinterview.api.model.Employee;
import com.kyexpress.framework.model.ResponseData;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author liwei
 * @date 2018/1/4 10:29
 */
public interface EmployeeRemoteService {
    /**
     * 创建面试邀请
     * @author liwei
     * @date 2018-01-04
     * @param bo
     * @return
     */
    @RequestMapping(value = "/employee/save", method = RequestMethod.POST)
    ResponseData<String> save (@RequestBody Employee bo);

    /**
     * 修改面试信息
     * @author liwei
     * @date 2018-01-04
     * @param bo
     * @return
     */
    @RequestMapping(value = "/employee/update", method = RequestMethod.POST)
    ResponseData<String> update (@RequestBody Employee bo);

    /**
     * 修改面试状态
     * @author liwei
     * @date 2018-01-04
     * @param bo
     * @return
     */
    @RequestMapping(value = "/employee/updateStatus", method = RequestMethod.POST)
    ResponseData<String> updateStatus(@RequestBody Employee bo);

    /**
     * 查看面试信息
     * @author liwei
     * @date 2018-01-04
     * @param id
     * @return
     */
    @RequestMapping(value = "/employee/get/{id}", method = RequestMethod.POST)
    ResponseData<Employee> get(@PathVariable Long id);

    /**
     * 统计
     * @author liwei
     * @date 2018-01-05
     * @return
     */
    @RequestMapping(value = "/employee/statistics", method = RequestMethod.POST)
    ResponseData<StatisticsBo> statistics();
}
